import Vuex from 'vuex'
import { IAppState } from './modules/app'
import { IUserState } from './modules/user'
import { IErc20State } from './modules/erc20'
import { LGTRewardState } from './modules/LGTRewardState'


export interface IRootState {
    app: IAppState
    user: IUserState
    erc20: IErc20State
    LGTReward: LGTRewardState
}

// Declare empty store first, dynamically register all modules later.
export default new Vuex.Store<IRootState>({}) 